package com.blueocean_health.care.management.controller.app;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.blueocean_health.care.management.domain.base.Param;
import com.blueocean_health.care.management.domain.base.SysResult;
import com.blueocean_health.care.management.domain.ordervo.Criteria;
import com.blueocean_health.care.management.service.IParamService;
@RestController
@RequestMapping(value="app/static")
public class AppParamHandler {
	@Resource
	private IParamService paramService;
	/**
	 * 获取指定类型的参数列表
	 * @param paramType
	 * @return
	 */
	@RequestMapping(value="param")
	public SysResult getParams(@RequestBody(required = false) Criteria criteria){
		//criteria.setDisplay(YesOrNo.YES);
		List<Param> params = paramService.getAppParams(criteria);
		return SysResult.ok(params);
	}

}
